﻿using AutoMapper;
using SXICE.AdminAPI.Models;
using SXICE.Core.Domains;
using SXICE.Core.Infrastructure;
using SXICE.Core.Models;
using SXICE.Core.Models.DTOs;
using SXICE.IService.Models;

namespace SXICE.AdminAPI.Infrastructure
{
    /// <summary>
    /// AutoMapper
    /// </summary>
    public class MapperProfile : Profile, IMapperRegister
    {
        /// <summary>
        /// 映射
        /// </summary>
        public MapperProfile()
        {
        }

        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="mapperConfiguration">接口参数</param>
        public void Register(IMapperConfigurationExpression mapperConfiguration)
        {
            mapperConfiguration.AddProfile<MapperProfile>();
        }
    }
}
